home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3628 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.iddis.com!jarnot
  2. From: jarnot@iddis.com (Kevin J. Jarnot)
  3. Newsgroups: comp.lang.c,comp.unix.misc,comp.unix.questions,harvard.comp.unix
  4. Subject: Re: Trap interrupts in C program
  5. Date: 29 Jan 1996 19:45:07 GMT
  6. Organization: IDD Information Services
  7. Message-ID: <JARNOT.96Jan29144507@box10.dstar.iddis.com>
  8. References: <4e1mos$8jn@decaxp.harvard.edu>
  9. Reply-To: jarnot@iddis.com
  10. NNTP-Posting-Host: box10.dstar.iddis.com
  11. To: sarmad@scws44.harvard.edu (Shaikh Sarmad)
  12. In-reply-to: sarmad@scws44.harvard.edu's message of 23 Jan 1996 04:04:44 GMT
  13.  
  14. >>>>> "Shaikh" == Shaikh Sarmad <sarmad@scws44.harvard.edu> writes:
  15.  
  16.     Shaikh> I want to write a C program that can should ignore all
  17.     Shaikh> signals (except the kill, of course). How do I incorporate
  18.     Shaikh> that in my program. I mean is there a "trap" command for
  19.     Shaikh> C, like in shell scripts? And yes, the C program would be
  20.     Shaikh> running on an HP-UX system.
  21.  
  22.  
  23.  
  24. See man page for signal().
  25.  
  26.  
  27. Kevin
  28. -- 
  29. Kevin J. Jarnot - Senior Software Engineer | mailto:jarnot@iddis.com 
  30. IDD Information Services  Waltham, MA      | http://www-cs.canisius.edu/~jarnot
  31.